﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Platform.Mvc
{
    /// <summary>
    /// 自定义字段
    /// </summary>
    public class CustomFieldAttribute : System.Attribute
    {
        public CustomFieldAttribute(FieldType fieldType )
        {
            FieldType = fieldType;
            ValueHiddenName = "OrgId";
        }
        public CustomFieldAttribute(FieldType fieldType, string valueHiddenName )
        {
            FieldType = fieldType; 
            ValueHiddenName = valueHiddenName;
        }
        public FieldType FieldType { get; set; }

        public string ValueHiddenName { get; set; }
    }
}
